class Person(object):

    """创建对象时, 会被自动调用, 在__init__之前执行"""
    def __new__(cls, *args, **kwargs):
        print("new")
        return super().__new__(cls)

    def __init__(self):
        print("init")

person = Person()